{% extends "manage/layout.html" %}

{% set page_title = '机构首页Block' %}

{% block css %}
<style type="text/css">
    th:last-child, td:last-child{
        width: 500px;
    }
    .fieldset .form-group .form-control-ck{
        display: inline-block;
        vertical-align:top;
    }
</style>
{% endblock %}

{% block content %}
<div class="m-content">
    <form class="form-horizontal" method="post">
        {{ form.hidden_tag() }}
        <fieldset class="fieldset">
            <legend>Block信息</legend>
            {% from "common/_formhelper.html" import render_field %}
            {{ render_field(form.oversea, class_="form-control") }}
            {{ render_field(form.title, class_="form-control", required=True) }}
            {{ render_field(form.url, class_="form-control") }}
            {{ render_field(form.article_id, class_="form-control", type="number") }}
            {{ render_field(form.display_order, class_="form-control", type="number") }}
            {% from "common/_formhelper.html" import render_select %}
            {{ render_select(form.block_name) }}
        <button type="submit" class="btn btn-primary  btn-lg">提交</button>
        </fieldset>
    </form>
</div>
{% endblock %}
{% block js %}
{% endblock %}
